# 汉化
import os

# LANGUAGE_CODE = 'zh-hans'
#
# TIME_ZONE = 'Asia/shanghai'
#
# USE_I18N = True
#
# USE_L10N = True
#
# USE_TZ = False





# 腾讯云短信
TENCENT_SMS_APPID = 1400501766  # 自己应用ID
TENCENT_SMS_APPKEY = "335d2a7dc7ddfc2aa3b27c594587c280"  # 自己应用Key
TENCENT_SMS_SIGN = "python后端接口开发"  # 签名管理里面的 自己腾讯云创建签名时填写的签名内容（使用公众号的话这个值一般是公众号全称或简称）

# 腾讯cos
TENCENT_COS_ID = "AKID4xaw1pMcbJkvpSothDSQ7XgX8TXKq53l"
TENCENT_COS_KEY = "SdW8TXKq53kAJBm7AwSheMo0vZwjGWVE"

# django-redis
# 上面是django项目settings中的其他配置....
CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://106.14.42.253:6999",  # 安装redis的主机的 IP 和 端口
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
            "CONNECTION_POOL_KWARGS": {
                "max_connections": 1000,
                "encoding": 'utf-8'
            },
            "PASSWORD": "foobared"  # redis密码
        }
    }
}
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# 阿里支付
ALI_GATEWAY = 'https://openapi.alipaydev.com/gateway.do'
ALI_PRI_KEY_PATH = os.path.join(BASE_DIR, 'files/应用私钥2048.txt')
ALI_PUB_KEY_PATH = os.path.join(BASE_DIR, 'files/支付宝公钥.txt')
ALI_NOTIFY_URL = 'http://106.14.42.253:8250/pay/notify/'  # POST
ALI_RETURN_URL = 'http://127.0.0.1:8080/pay/notify/'  # GET js发送的
ALI_APPID = 2021000117632946

# mysql
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'mysql',
        'USER': 'root',
        'PASSWORD': 'foobared',
        'HOST': '106.14.42.253',
        'PORT': '3333',
    }
}